package com.zt.location.modules.base.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zt.location.modules.base.dao.RealTimeDao;
import com.zt.location.modules.base.entity.RealTimeEntity;
import com.zt.location.modules.base.service.RealTimeService;

@Service("realTimeService")
public class RealTimeServiceImpl implements RealTimeService{

	@Autowired
	private RealTimeDao realTimeDao;
	
	@Override
	public RealTimeEntity queryObject(String id) { 
		return realTimeDao.queryObject(id);
	}

	@Override
	public List<RealTimeEntity> queryList(Map<String, Object> map){
		return realTimeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return realTimeDao.queryTotal(map);
	}
	
	@Override
	public void save(RealTimeEntity realTime){
		realTimeDao.save(realTime);
	}

	@Override
	public void update(RealTimeEntity realTime) {
		realTimeDao.update(realTime);
	}
	
	@Override
	public void delete(String readerId){
		realTimeDao.delete(readerId);
	}
	
	@Override
	public void deleteBatch(String[] readerIds){
		realTimeDao.deleteBatch(readerIds);
	}
	
	public List<RealTimeEntity> queryInitList(){
		return realTimeDao.queryInitList();
	}
	
	public void updateMainchStatus(String id){
		 realTimeDao.updateMainchStatus(id);
	}
	
	public void updateMainchSpeed(String id){
		realTimeDao.updateMainchSpeed(id);
	}
	
	public void updateWebSpeed(String id){
		realTimeDao.updateWebSpeed(id);
	}
	
}
